package com.hyt.it.ogt.ykcj.service.exam.impl;

import com.hyt.core.base.BaseServiceImpl;
import com.hyt.it.ogt.ykcj.domain.exam.ExamPublishCertificateInfo;
import com.hyt.it.ogt.ykcj.mapper.exam.ExamPublishCertificateInfoMapper;
import com.hyt.it.ogt.ykcj.service.exam.IExamPublishCertificateInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 发布考试证书信息表 服务实现类
 * </p>
 *
 * @author yanghuankun@talkweb.com.cn
 * @since 2023-06-15
 */
@Service
public class ExamPublishCertificateInfoServiceImpl extends BaseServiceImpl<ExamPublishCertificateInfoMapper, ExamPublishCertificateInfo> implements IExamPublishCertificateInfoService {

    @Override
    public List<ExamPublishCertificateInfo> listByExamId(String examId) {
        return this.lambdaQuery()
                .eq(ExamPublishCertificateInfo::getExamInfoId, examId)
                .orderByDesc(ExamPublishCertificateInfo::getCreateTime)
                .list();
    }
}
